;
var APP_DEV_ENV =0, // 1开发环境 0生产环境
    DEV_TEST = 1, // 1生产环境 0联调环境
    appJoin = APP_DEV_ENV ? "?" : "",
    appType = {
        "insert": "insert",
        "del": "del",
        "sel": "sel",
        "update": "update",
    },
    moveObj,// 移动轨迹全局变量
    __ = function (x) {
        console.log(x);
    };

if (APP_DEV_ENV) {
    appType.insert = "sel";
    appType.del = "sel";
    appType.update = "sel";
}

// 用于 警情研判 轨迹跟踪 下的 定时器
var showPathInterval;
// 定时器
var intervals = new Array(20);
for (var i = 0; i < intervals.length; i++) {
    clearInterval(intervals[i]);
}
;

function appApi(code) {

    var appApi = {

        // 验证码
        "LOGIN_VERIFY": APP_DEV_ENV ? "../assets/images/verify.png" : $.getWebRootPath("kaptcha/kaptcha.jpg"),
        // 登录 0>验证码错误 “角色名”>登录成功 账号或密码错误>在status中返回错误信息
        "LOGIN": APP_DEV_ENV ? "./jsons/userMessage.json" : $.getWebRootPath("sysManager/login"),

        //数据返回监听    "ws://172.17.225.125:8080/dataManagerWeb/websocket"
        // "SOCKET_URL": APP_DEV_ENV ? "ws://localhost:8687" :"ws://172.28.3.201:8090/dataManagerWeb/websocket" ,
        "SOCKET_URL": APP_DEV_ENV ? "ws://localhost:8687" :"ws://172.17.225.125:8080/dataManagerWeb/websocket" ,

        // 修改密码
        "INDEX_UPDATEPWD": APP_DEV_ENV ? "./jsons/onoff.json" : $.getWebRootPath("sysManager/chgPwd"),
        // 退出
        "LOGOUT": APP_DEV_ENV ? "login.html" : $.getWebRootPath("logout"),

        // 分页
        "PAGE_SIZE": 10,
        // 所有系统导航  $.getWebRootPath("./jsons/allSysLink.json")
        "ALL_SYSTEM_LINK": APP_DEV_ENV ? "./jsons/allSysLink.json" : "./jsons/allSysLink.json",
        // 查询当前用户信息
        "SELECT_USER": APP_DEV_ENV ? "./jsons/user.json" : $.getWebRootPath("auth/getUser"),

        // 菜单
        "KMGA_MENU": APP_DEV_ENV ? "./jsons/menu.json" : $.getWebRootPath("auth/getMenu"),
        //"KMGA_MENU": APP_DEV_ENV ? "./jsons/menu.json" : "./jsons/menu.json",
        //左菜单
        "KMGA_LEFTMENU": APP_DEV_ENV ? "./jsons/leftMenu.json" : "./jsons/leftMenu.json",

        //配置页面跳转
        "KMGA_JUMP_CONFIG": APP_DEV_ENV ? "./jsons/menu.json" : $.getWebRootPath("deviceManager/getLoginParamsByDevId"),

        //获取tonken值
        "KMGA_GET_TONKEN": APP_DEV_ENV ? "./jsons/tonken.json" : $.getWebRootPath("deviceManager/getDeviceSecretById"),


        //设备拓扑图
        //设备占比与检索
        "KMGA_DEVICE_LIST": APP_DEV_ENV ? "./jsons/homePage/deviceList.json" : $.getWebRootPath("deviceManager/getDeviceNumByType"),
        //拓扑图绘制
        "KMGA_DEVICE_TOPOLOGY": APP_DEV_ENV ? "./jsons/homePage/deviceTopology.json" : $.getWebRootPath("deviceManager/getAllDevicesByType"),
        //设备配置接口
        "KMGA_DEVICE_ALLOCATION": APP_DEV_ENV ? "./jsons/homePage/deviceUrl.json" : $.getWebRootPath("deviceManager/getDeviceConfigMenuById"),
        //设备信息
        "KMGA_DEVICE_INFO": APP_DEV_ENV ? "./jsons/homePage/deviceInfo.json" : $.getWebRootPath("deviceManager/getDeviceStatusInfoById"),

        //设备列表
        //设备分页
        "KMGA_DEVICE_PAGE": APP_DEV_ENV ? "./jsons/homePage/devicePage.json" : $.getWebRootPath("deviceManager/getAllDevicesByPages"),
        //添加设备
        "KMGA_DEVICE_ADD": APP_DEV_ENV ? "./jsons/homePage/deviceAdd.json" : $.getWebRootPath("deviceManager/addDevice"),
        //更新设备
        "KMGA_DEVICE_UPDATA": APP_DEV_ENV ? "./jsons/homePage/deviceUpdata.json" : $.getWebRootPath("deviceManager/updateDevice"),
        //删除设备
        "KMGA_DEVICE_DEL": APP_DEV_ENV ? "./jsons/homePage/deviceDel.json" : $.getWebRootPath("deviceManager/deleteDevice"),
        //设备管理 批量操作
        "KMGA_BATCH_DEL": APP_DEV_ENV ? "./jsons/batchHandle/homePage/batchDel.json" : "",
        "KMGA_BATCH_START": APP_DEV_ENV ? "./jsons/batchHandle/homePage/batchStart.json" : "",
        "KMGA_BATCH_CLOSE": APP_DEV_ENV ? "./jsons/batchHandle/homePage/batchClose.json" : "",
        //获取设备类型
        "KMGA_GET_DEVICETYPE": APP_DEV_ENV ? "./jsons/homePage/deviceType.json" : $.getWebRootPath("deviceManager/getAllDeviceType"),

        //获取设备厂商
        "KMGA_GET_DEVICEVENDER": APP_DEV_ENV ? "./jsons/homePage/deviceVender.json" : $.getWebRootPath("deviceManager/getAllDeviceManufacturer"),
        //告警管理
        //查询告警规则 
        "KMGA_ALARM_SEARCH": APP_DEV_ENV ? "./jsons/dataRegulation/access/accessSearch.json" : $.getWebRootPath("dataManager/getSecuRuleByResourceId"),


        //数据资源配置
        "KMGA_PANEL_BODY": APP_DEV_ENV ? "./jsons/dataRegulation/panel/databaseTable.json" : $.getWebRootPath("dataManager/getDataResourceList"),

        //保存拖拽状态

        "KMGA_DARG_STATE": APP_DEV_ENV ? "./jsons/dataRegulation/panel/dragState.json" : $.getWebRootPath("dataManager/configureAuditObject"),


        //修改审计对象
        "KMGA_UPDATA_OBJECT": APP_DEV_ENV ? "./jsons/dataRegulation/panel/updataObject.json" : $.getWebRootPath("dataManager/getAuditObjectById"),

        //保存修改
        "KMGA_SAVE_OBJECT": APP_DEV_ENV ? "./jsons/dataRegulation/panel/saveObject.json" : $.getWebRootPath("dataManager/configureAuditObject"),


        //保存数据源或修改
        "KMGA_SAVE_UPDATA": APP_DEV_ENV ? "./jsons/dataRegulation/panel/saveOrUpdata.json" : $.getWebRootPath("dataManager/saveOrUpdataResource"),


        //查看数据源
        "KMGA_SEARCH_TABLE": APP_DEV_ENV ? "./jsons/dataRegulation/panel/searchTable.json" : $.getWebRootPath("dataManager/getResourceById"),
        //删除数据源
        "KMGA_DELETE_TABLE": APP_DEV_ENV ? "./jsons/dataRegulation/panel/deleteTable.json" : $.getWebRootPath("dataManager/deleteResource"),
        //获取资源类型
        "KMGA_GET_TABLE": APP_DEV_ENV ? "./jsons/dataRegulation/panel/getTable.json" : $.getWebRootPath("dataManager/getAndAddResourceType"),
        //删除告警
        "KMGA_DEL_ALARM": APP_DEV_ENV ? "./jsons/dataRegulation/panel/delAlarm.json" : $.getWebRootPath("dataManager/removeSecuRuleById"),


        //参数配置
        //新增IP
        "KMGA_ADD_IP": APP_DEV_ENV ? "./jsons/dataRegulation/ipconfig/addIp.json" : $.getWebRootPath("ipSettingManage/addIpSetting"),

        //ip分页
        "KMGA_PAGE_IP": APP_DEV_ENV ? "./jsons/dataRegulation/ipconfig/pageIp.json" : $.getWebRootPath("ipSettingManage/findIpSetting"),

        //删除ip
        "KMGA_DEL_IP": APP_DEV_ENV ? "./jsons/dataRegulation/ipconfig/delIp.json" : $.getWebRootPath("ipSettingManage/removeIpSettingById"),

        //更新ip
        "KMGA_UPDATA_IP": APP_DEV_ENV ? "./jsons/dataRegulation/ipconfig/updataIp.json" : $.getWebRootPath("ipSettingManage/modifyIpSetting"),

        //批量删除
        "KMGA_DELALL_IP": APP_DEV_ENV ? "./jsons/dataRegulation/ipconfig/delAllIp.json" : $.getWebRootPath("ipSettingManage/batchRemoveIpSetting"),


        //告警规则页面渲染
        "KMGA_ALARM_RULE": APP_DEV_ENV ? "" : $.getWebRootPath("featureCode/findFeatureCodesByTypeIds"),


        //获取收件人
        "KMGA_ALARM_EMAIL": APP_DEV_ENV ? "./jsons/dataRegulation/ipconfig/email.json" :$.getWebRootPath("dataManager/findSysUsers"),


        //获取客户端IP
        "KMGA_CLIENT_IP": APP_DEV_ENV ? "./jsons/dataRegulation/ipconfig/clientIp.json" : $.getWebRootPath("ipSettingManage/findAllIpSetting"),

        //添加告警规则
        "KMGA_ADD_RULE": APP_DEV_ENV ? "" : $.getWebRootPath("dataManager/addSecuRuleByResourceId"),

        //查询告警规则
        "KMGA_SEACHER_RULE": APP_DEV_ENV ? "" : $.getWebRootPath("dataManager/findSecuRuleById"),

        //批量删除告警规则
        "KMGA_DELALL_RULE": APP_DEV_ENV ? "" : $.getWebRootPath("dataManager/batchRemoveSecuRule"),

        //告警规则状态修改
        "KMGA_CHANGE_RULE": APP_DEV_ENV ? "" : $.getWebRootPath("dataManager/updateSecuRuleByRuleId"),
        //流量分析

        //流向分析
        "KMGA_RESOURCES_FLOW": APP_DEV_ENV ? "./jsons/dataRegulation/flow/selectTable.json" : $.getWebRootPath(""),

        //绘制svg图
        "KMGA_RESOURCES_FLOWSELECT": APP_DEV_ENV ? "./jsons/dataRegulation/flow/flow.json" : $.getWebRootPath("ftpFlowStatistic/statFlowSvgGraph"),

        //今日资源详情
        "KMGA_RESOURCES_INFO": APP_DEV_ENV ? "./jsons/trafficAnalysis/resources.json" : $.getWebRootPath("trafficStatistic/findResourceTraffic"),
        //流量概览
        "KMGA_RESOURCES_VIEW": APP_DEV_ENV ? "./jsons/trafficAnalysis/view.json" : $.getWebRootPath("trafficStatistic/findTotalStatistic"),
        //访问量
        "KMGA_ACCESS_AMOUNT": APP_DEV_ENV ? "./jsons/trafficAnalysis/amount.json" : $.getWebRootPath("trafficStatistic/findAccessAmount"),
        //访问次数
        "KMGA_ACCESS_NUMBER": APP_DEV_ENV ? "./jsons/trafficAnalysis/amount.json" : $.getWebRootPath("trafficStatistic/findAccessTimes"),
        //客户端IP分页
        "KMGA_RESOURCES_IPPAGE": APP_DEV_ENV ? "./jsons/trafficAnalysis/ipPage.json" : $.getWebRootPath('trafficStatistic/findIpOfResource'),


        //FTP流量
        "KMGA_FTP_SOURCE": APP_DEV_ENV ? "./jsons/trafficAnalysis/ftpSource.json" : $.getWebRootPath('ftpFlowStatistic/findAllFtpClients'),

        //时均总量统计
        "KMGA_FTP_HOUR": APP_DEV_ENV ? "./jsons/trafficAnalysis/ftpByHour.json" : $.getWebRootPath('ftpFlowStatistic/findDayFlowTotalNum'),

          //时均24统计
        "KMGA_FTP_HOUR24": APP_DEV_ENV ? "./jsons/trafficAnalysis/ftpByHour24.json" : $.getWebRootPath('ftpFlowStatistic/findFTPHourFlowList'),
        //24小时曲线图
        "KMGA_FTP_CHART24": APP_DEV_ENV ? "./jsons/trafficAnalysis/ftpChartHour24.json" : $.getWebRootPath('ftpFlowStatistic/findFtpHourBarGraph'),

        //进30日流量详情
        "KMGA_FTP_DAYS30": APP_DEV_ENV ? "./jsons/trafficAnalysis/ftpByDay30.json" : $.getWebRootPath('ftpFlowStatistic/findFTPDayFlowList'),

        //30日曲线图
        "KMGA_FTP_CHART30": APP_DEV_ENV ? "./jsons/trafficAnalysis/ftpChartHour24.json" : $.getWebRootPath('ftpFlowStatistic/findFtpDayBarGraph'),

        //客户端管理

        //终端展示
        "KMGA_DATA_DATACLIENT": APP_DEV_ENV ? "./jsons/dataRegulation/dataClient/databaseTable.json" : $.getWebRootPath('trafficStatistic/getClientListForDatabaseDirectConnection'),

        //保存拖拽状态
        "KMGA_DATA_STATE": APP_DEV_ENV ? "./jsons/dataRegulation/panel/dragState.json" : $.getWebRootPath("trafficStatistic/updateClientInfoFromOther"),

        //获取客户端对象
        "KMGA_DATA_OBJECT": APP_DEV_ENV ? "./jsons/dataRegulation/dataClient/dataObject.json" : $.getWebRootPath("trafficStatistic/getClientInfoById"),

        //保存客户端对象
        "KMGA_DATA_OBJECTSAVE": APP_DEV_ENV ? "./jsons/dataRegulation/dataClient/dataObject.json" : $.getWebRootPath("trafficStatistic/updateClientInfo"),

        //未知点击事件
        "KMGA_CLICK_OBJECTSAVE": APP_DEV_ENV ? "./jsons/dataRegulation/dataClient/dataObject.json" : $.getWebRootPath("trafficStatistic/updateClientStatusFromOther"),


        //风险阀值配置

        //风险阀值分页
        "KMGA_RISK_THRESHOLD": APP_DEV_ENV ? "./jsons/dataRegulation/flow/threshold.json" : $.getWebRootPath("dataManager/getClientLimitList"),

        //获取配置信息
        "KMGA_GET_THRESHOLD": APP_DEV_ENV ? "./jsons/dataRegulation/flow/riskInfo.json" : $.getWebRootPath("dataManager/getClientLimitInfoByIp"),

        //保存配置信息
        "KMGA_SAVE_THRESHOLD": APP_DEV_ENV ? "./jsons/dataRegulation/flow/riskInfo.json" : $.getWebRootPath("dataManager/updateClientLimit"),


        //风险事件

        //风险事件统计
        "KMGA_RISK_STATISTICS": APP_DEV_ENV ? "./jsons/riskEvents/statistics.json" : $.getWebRootPath('riskEvent/findEventStatistics'),
        //风险级别
        "KMGA_RISK_LEVEL": APP_DEV_ENV ? "./jsons/riskEvents/level.json" : $.getWebRootPath('riskEvent/findRiskLevelStatistic'),
        //风险数据源
        "KMGA_RISK_DATA": APP_DEV_ENV ? "./jsons/riskEvents/data.json" : $.getWebRootPath('riskEvent/findRiskDataSourceStatistic'),
        //风险IP
        "KMGA_RISK_IP": APP_DEV_ENV ? "./jsons/riskEvents/ip.json" : $.getWebRootPath('riskEvent/findRiskIpStatistic'),
        //更多数据源
        "KMGA_RISK_MOREDATA": APP_DEV_ENV ? "./jsons/riskEvents/ip.json" : $.getWebRootPath('riskEvent/findRiskDataSourceListsByPage'),
        //更多IP
        "KMGA_RISK_MOREIP": APP_DEV_ENV ? "./jsons/riskEvents/ip.json" : $.getWebRootPath('riskEvent/findRiskIPListsByPage'),

        //日志检索

        //Hbase访问日志````

        //日志等级
        "LOG_RANK": APP_DEV_ENV ? "./jsons/logManage/probe/logRank.json" : "./jsons/logManage/probe/logRank.json",
        //Hbase日志All
        "HBASE_DATA_TOP": APP_DEV_ENV ? "./jsons/logManage/probe/newTopAll.json" : $.getWebRootPath("logManager/findLogQueryField"),
        //操作类型
        "CON_TYPE": APP_DEV_ENV ? "./jsons/logManage/probe/conType.json" : "./jsons/logManage/probe/conType.json",
        //设备来源名称
        "EQ_NAME": APP_DEV_ENV ? "./jsons/logManage/probe/eqName.json" : "./jsons/logManage/probe/eqName.json",
        //Hbase日志list
        "HBASE_DATA_LIST": APP_DEV_ENV ? "./jsons/logManage/probe/list1.json" : $.getWebRootPath("logManager/findDeviceLogByPage"),
        //今天资源数据
        "MYSQL_DATA_LIST": APP_DEV_ENV ? "./jsons/logManage/probe/listSolr.json" : $.getWebRootPath("logManager/findDeviceLogByPage"),



        //案件上传
        "T_UPLOADING_FILE": APP_DEV_ENV ? "./jsons/logManage/probe/upload.xlsx" : $.getWebRootPath("logManager/downLoadLog"),
        //审计对象
        "AUDIT_TTYPE": APP_DEV_ENV ? "./jsons/logManage/probe/audiTtype.json" : "./jsons/logManage/probe/audiTtype.json",
        //其他，风险级别
        "OTHER_1": APP_DEV_ENV ? "./jsons/logManage/probe/other1.json" : "./jsons/logManage/probe/other1.json",
        //客户端ip
        "OTHER_2": APP_DEV_ENV ? "./jsons/logManage/probe/other2.json" : "./jsons/logManage/probe/other2.json",
        //客户端mac
        "OTHER_3": APP_DEV_ENV ? "./jsons/logManage/probe/other3.json" : "./jsons/logManage/probe/other3.json",
        //数据库账户
        "OTHER_4": APP_DEV_ENV ? "./jsons/logManage/probe/other4.json" : "./jsons/logManage/probe/other4.json",
        //操作类型2
        "CON_HBASE": APP_DEV_ENV ? "./jsons/logManage/probe/hbase.json" : "./jsons/logManage/probe/hbase.json",

        //Solr访问日志````

        //库表删除
        "POOL_DEL": APP_DEV_ENV ? "./jsons/logManage/probe2/poolDel.json" : "./jsons/logManage/probe2/poolDel.json",
        //Solr日志All
        "SOLR_DATA_TOP": APP_DEV_ENV ? "./jsons/logManage/probe/newTopAll.json" : "./jsons/logManage/probe/newTopAll.json",
        //Hbase日志list
        "SOLR_DATA_LIST": APP_DEV_ENV ? "./jsons/logManage/probe/list1.json" : $.getWebRootPath("logManager/findDeviceLogByPage"),
        //设备来源名称
        "EQ_NAME2": APP_DEV_ENV ? "./jsons/logManage/probe2/eqName2.json" : "./jsons/logManage/probe2/eqName2.json",
        //风险级别
        "OTHER_1_1": APP_DEV_ENV ? "./jsons/logManage/probe2/other1.json" : "./jsons/logManage/probe2/other1.json",
        //设备类型
        "OTHER_2_2": APP_DEV_ENV ? "./jsons/logManage/probe2/other2.json" : "./jsons/logManage/probe2/other2.json",
        //审计对象
        "AUDIT_TTYPE2": APP_DEV_ENV ? "./jsons/logManage/probe2/audiTtype2.json" : "./jsons/logManage/probe2/audiTtype2.json",
        //特权操作日志
        "PRE_ACTION": APP_DEV_ENV ? "./jsons/logManage/probe2/list1.json" : $.getWebRootPath("logManager/findDeviceLogByPage"),
        //日志导出
        "T_UPLOADING_FILE2": APP_DEV_ENV ? "./jsons/logManage/probe/upload.xlsx" : $.getWebRootPath("logManager/findDeviceLogByPage"),
        /*
         Oracle访问日志
         * */
        //库表账户
        "POOL_AD": APP_DEV_ENV ? "./jsons/logManage/probe3/poolAd.json" : "./jsons/logManage/probe3/poolAd.json",
        //Oracle日志All
        "ORACLE_DATA_TOP": APP_DEV_ENV ? "./jsons/logManage/probe/newTopAll.json" : "./jsons/logManage/probe/newTopAll.json",
        //Hbase日志list
        "ORACLE_DATA_LIST": APP_DEV_ENV ? "./jsons/logManage/probe/list1.json" : $.getWebRootPath("logManager/findDeviceLogByPage"),
        //风险级别
        "OTHER_1_3": APP_DEV_ENV ? "./jsons/logManage/probe3/other1.json" : "./jsons/logManage/probe3/other1.json",
        //设备类型
        "OTHER_2_3": APP_DEV_ENV ? "./jsons/logManage/probe3/other2.json" : "./jsons/logManage/probe3/other2.json",
        //审计对象
        "AUDIT_TTYPE3": APP_DEV_ENV ? "./jsons/logManage/probe3/audiTtype2.json" : "./jsons/logManage/probe3/audiTtype2.json",
        //查询工具日志
        "SEA_ACTION": APP_DEV_ENV ? "./jsons/logManage/probe3/list1.json" : $.getWebRootPath("logManager/getQueryToolLogByPage"),
        //日志导出
        "T_UPLOADING_FILE3": APP_DEV_ENV ? "./jsons/logManage/probe/upload.xlsx" : $.getWebRootPath("logManager/uploadQueryToolLog"),
        /*
         脱敏日志
         * */
        //静态脱敏````
        //脱敏对象
        "POOL_AD4": APP_DEV_ENV ? "./jsons/logManage/tm1/poolAd.json" : "./jsons/logManage/tm1/poolAd.json",

        //风险级别
        "OTHER_1_4": APP_DEV_ENV ? "./jsons/logManage/tm1/other1.json" : "./jsons/logManage/tm1/other1.json",
        //设备类型
        "OTHER_2_4": APP_DEV_ENV ? "./jsons/logManage/tm1/other2.json" : "./jsons/logManage/tm1/other2.json",
        //审计对象
        "AUDIT_TTYPE4": APP_DEV_ENV ? "./jsons/logManage/tm1/audiTtype2.json" : "./jsons/logManage/tm1/audiTtype2.json",
        //特权操作日志
        "TM_LIST1": APP_DEV_ENV ? "./jsons/logManage/tm1/list1.json" : $.getWebRootPath("logManager/getDataBaseStaticDesensitizationLogByPage"),
        //静态脱敏日志导出
        "T_UPLOADING_FILE4": APP_DEV_ENV ? "./jsons/logManage/tm1/upload.xlsx" : $.getWebRootPath("logManager/uploadDataBaseStaticDesensitizationLog"),

        //数据库动态脱敏````
        //脱敏对象（下拉
        "POOL_AD5": APP_DEV_ENV ? "./jsons/logManage/tm2/poolAd.json" : "./jsons/logManage/tm2/poolAd.json",
        //访问专户
        "VISIT_USER": APP_DEV_ENV ? "./jsons/logManage/tm2/other1.json" : "./jsons/logManage/tm2/other1.json",
        //脱敏对象
        "AUDIT_TTYPE5": APP_DEV_ENV ? "./jsons/logManage/tm2/audiTtype2.json" : "./jsons/logManage/tm2/audiTtype2.json",
        //动态脱敏日志
        "TM_LIST2": APP_DEV_ENV ? "./jsons/logManage/tm2/list1.json" : $.getWebRootPath("logManager/getDataBaseDynamicDesensitizationLogByPage"),
        //动态脱敏日志导出
        "T_UPLOADING_FILE5": APP_DEV_ENV ? "./jsons/logManage/tm2/upload.xlsx" : $.getWebRootPath("logManager/uploadDataBaseDynamicDesensitizationLog"),

        //文件静态脱敏````
        //脱敏对象（下拉
        "POOL_AD6": APP_DEV_ENV ? "./jsons/logManage/tm3/fileName.json" : "./jsons/logManage/tm3/fileName.json",
        //访问专户
        "FILE_TYPE": APP_DEV_ENV ? "./jsons/logManage/tm3/fileType.json" : "./jsons/logManage/tm3/fileType.json",
        //文件动态脱敏日志
        "TM_LIST3": APP_DEV_ENV ? "./jsons/logManage/tm3/list1.json" : $.getWebRootPath("logManager/getFileDynamicDesensitizationLogByPage"),
        //文件动态脱敏日志导出
        "T_UPLOADING_FILE6": APP_DEV_ENV ? "./jsons/logManage/tm3/upload.xlsx" : $.getWebRootPath("logManager/uploadFileDynamicDesensitizationLog"),

        //文件动态脱敏````
        //脱敏对象（下拉
        "POOL_AD7": APP_DEV_ENV ? "./jsons/logManage/tm4/fileName.json" : "./jsons/logManage/tm4/fileName.json",
        //访问专户
        "FILE_TYPE2": APP_DEV_ENV ? "./jsons/logManage/tm4/fileType.json" : "./jsons/logManage/tm4/fileType.json",
        //文件动态脱敏日志
        "TM_LIST4": APP_DEV_ENV ? "./jsons/logManage/tm4/list1.json" : $.getWebRootPath("logManager/getFileStaticDesensitizationLogByPage"),
        //文件动态脱敏日志导出
        "T_UPLOADING_FILE7": APP_DEV_ENV ? "./jsons/logManage/tm4/upload.xlsx" : $.getWebRootPath("logManager/uploadFileStaticDesensitizationLog"),

        //运维操作日志````
        //日志等级
        "LOG_RANK2": APP_DEV_ENV ? "./jsons/logManage/yy/logRank.json" : "./jsons/logManage/yy/logRank.json",
        //操作类型
        "CON_TYPE2": APP_DEV_ENV ? "./jsons/logManage/yy/conType.json" : "./jsons/logManage/yy/conType.json",
        //会话类型
        "CALL_TYPE": APP_DEV_ENV ? "./jsons/logManage/yy/callType.json" : "./jsons/logManage/yy/callType.json",
        //运维日志列表
        "PRE_ACTION2": APP_DEV_ENV ? "./jsons/logManage/yy/list1.json" : $.getWebRootPath("logManager/getMaintenanceOperationLogByPage"),
        //案件上传
        "T_UPLOADING_FILE8": APP_DEV_ENV ? "./jsons/logManage/yy/upload.xlsx" : $.getWebRootPath("logManager/uploadMaintenanceOperationLog"),
        //运维对象
        "PRE_TYPE": APP_DEV_ENV ? "./jsons/logManage/yy/preTtype.json" : "./jsons/logManage/yy/preTtype.json",
        //协议类型preUser
        "DEl_TYPE": APP_DEV_ENV ? "./jsons/logManage/yy/delTtype.json" : "./jsons/logManage/yy/delTtype.json",
        //运维用户
        "PRE_USER": APP_DEV_ENV ? "./jsons/logManage/yy/preUser.json" : "./jsons/logManage/yy/preUser.json",

        //监管平台日志````
        //设备名称
        "SYS_EQ_NAME": APP_DEV_ENV ? "./jsons/logManage/system1/eqName.json" : "./jsons/logManage/system1/eqName.json",
        //监管日志列表
        "SYS_PRE_ACTION2": APP_DEV_ENV ? "./jsons/logManage/system1/list1.json" : $.getWebRootPath("logManager/getRegulatoryPlatformLogByPage"),
        //案件上传
        "T_UPLOADING_FILE9": APP_DEV_ENV ? "./jsons/logManage/system1/upload.xlsx" : $.getWebRootPath("logManager/uploadRegulatoryPlatformLog"),
        //设备名称
        "SYS_EQ_NAME2": APP_DEV_ENV ? "./jsons/logManage/system1/eqName2.json" : "./jsons/logManage/system1/eqName2.json",
        //操作模块
        "SYS_CON_MODULE": APP_DEV_ENV ? "./jsons/logManage/system1/conModule.json" : "./jsons/logManage/system1/conModule.json",
        //操作类型
        "SYS_CON_TYPE": APP_DEV_ENV ? "./jsons/logManage/system1/conType.json" : "./jsons/logManage/system1/conType.json",

        //探针设备日志````
        //设备名称
        "SYS_EQ_NAME1": APP_DEV_ENV ? "./jsons/logManage/system1/eqName.json" : "./jsons/logManage/system1/eqName.json",
        //监管日志列表
        "SYS_PRE_ACTION3": APP_DEV_ENV ? "./jsons/logManage/system1/list1.json" : $.getWebRootPath("logManager/getProbeEquipmentLogByPage"),
        //案件上传
        "T_UPLOADING_FILE10": APP_DEV_ENV ? "./jsons/logManage/system1/upload.xlsx" : $.getWebRootPath("logManager/uploadProbeEquipmentLog"),
        //设备名称
        "SYS_EQ_NAME3": APP_DEV_ENV ? "./jsons/logManage/system1/eqName2.json" : "./jsons/logManage/system1/eqName2.json",
        //操作模块
        "SYS_CON_MODULE1": APP_DEV_ENV ? "./jsons/logManage/system1/conModule.json" : "./jsons/logManage/system1/conModule.json",
        //操作类型
        "SYS_CON_TYPE1": APP_DEV_ENV ? "./jsons/logManage/system1/conType.json" : "./jsons/logManage/system1/conType.json",

        //脱敏设备日志````
        //设备名称
        "SYS_EQ_NAME6": APP_DEV_ENV ? "./jsons/logManage/system1/eqName.json" : "./jsons/logManage/system1/eqName.json",
        //监管日志列表
        "SYS_PRE_ACTION4": APP_DEV_ENV ? "./jsons/logManage/system1/list1.json" : $.getWebRootPath("logManager/getDesensitizationEquipmentLogByPage"),
        //案件上传
        "T_UPLOADING_FILE11": APP_DEV_ENV ? "./jsons/logManage/system1/upload.xlsx" : $.getWebRootPath("logManager/uploadDesensitizationEquipmentLog"),
        //设备名称
        "SYS_EQ_NAME4": APP_DEV_ENV ? "./jsons/logManage/system1/eqName2.json" : "./jsons/logManage/system1/eqName2.json",
        //操作模块
        "SYS_CON_MODULE2": APP_DEV_ENV ? "./jsons/logManage/system1/conModule.json" : "./jsons/logManage/system1/conModule.json",
        //操作类型
        "SYS_CON_TYPE3": APP_DEV_ENV ? "./jsons/logManage/system1/conType.json" : "./jsons/logManage/system1/conType.json",

        //运维设备日志````
        //设备名称
        "SYS_EQ_NAME7": APP_DEV_ENV ? "./jsons/logManage/system1/eqName.json" : "./jsons/logManage/system1/eqName.json",
        //监管日志列表
        "SYS_PRE_ACTION5": APP_DEV_ENV ? "./jsons/logManage/system1/list1.json" : $.getWebRootPath("logManager/getMaintenanceEquipmentLogByPage"),
        //案件上传
        "T_UPLOADING_FILE12": APP_DEV_ENV ? "./jsons/logManage/system1/upload.xlsx" : $.getWebRootPath("logManager/uploadMaintenanceEquipmentLog"),
        //设备名称
        "SYS_EQ_NAME5": APP_DEV_ENV ? "./jsons/logManage/system1/eqName2.json" : "./jsons/logManage/system1/eqName2.json",
        //操作模块
        "SYS_CON_MODULE3": APP_DEV_ENV ? "./jsons/logManage/system1/conModule.json" : "./jsons/logManage/system1/conModule.json",
        //操作类型
        "SYS_CON_TYPE4": APP_DEV_ENV ? "./jsons/logManage/system1/conType.json" : "./jsons/logManage/system1/conType.json",


        /*
         系统管理
         * */


        //系统信息charts
        "SYS_INFO_CHARTS1": APP_DEV_ENV ? "./jsons/sysManage/sysInfo/sysOption1.json" : $.getWebRootPath("sysManager/getServiceStatus"),
        //系统信息设备情况
        "SYS_INFO_CHARTS2": APP_DEV_ENV ? "./jsons/sysManage/sysInfo/sysOption2.json" : $.getWebRootPath("sysManager/getLocalServiceInfo"),
        //系统信息修改设备信息
        "SYS_INFO_CHARTS3": APP_DEV_ENV ? "./jsons/sysManage/sysInfo/sysOption3.json" : $.getWebRootPath("sysManager/updateLocalServiceInfo"),
        //邮件服务器测试邮箱
        "EM_SER_TEST": APP_DEV_ENV ? "./jsons/sysManage/sysInfo/email.json" : $.getWebRootPath("sysManager/verifySysEmailSer"),
        //邮件服务器测试邮箱
        "EM_SER_SEND": APP_DEV_ENV ? "./jsons/sysManage/sysInfo/email.json" : $.getWebRootPath("sysManager/createOrModifySysEmailConfig"),
        //邮件服务器默认值
        "EM_SER_DATA": APP_DEV_ENV ? "./jsons/sysManage/sysInfo/sysData.json" : $.getWebRootPath("sysManager/findSysEmailConfig"),
        //采集服务器
        //采集服务器名称
        "SYS_SER_NAME": APP_DEV_ENV ? "./jsons/sysManage/sysInfo/sysManage.json" : $.getWebRootPath("servConfig/findServConfigQuery"),
        //采集服务器列表list
        "SYS_SER_LIST": APP_DEV_ENV ? "./jsons/sysManage/sysInfo/userList.json" : $.getWebRootPath("servConfig/findServConfigByCondition"),
        //添加采集服务器
        "COLL_VAL_SEND": APP_DEV_ENV ? "./jsons/sysManage/sysInfo/collVals.json" : $.getWebRootPath("servConfig/createServConfig"),
        //单条删除
        "COLL_DEL_LIST": APP_DEV_ENV ? "./jsons/sysManage/sysInfo/del.json" : $.getWebRootPath("servConfig/removeServConfigById"),
        //多条删除
        "COLL_DEL_ALL": APP_DEV_ENV ? "./jsons/sysManage/sysInfo/del.json" : $.getWebRootPath("servConfig/removeServConfigByIds"),
        //状态编辑
        "COLL_EIDT_STATUS": APP_DEV_ENV ? "./jsons/sysManage/sysInfo/status.json" :  $.getWebRootPath("servConfig/modifyServStatusById"),
        //单条内容编辑
        "COLL_EIDT_DATA": APP_DEV_ENV ? "./jsons/sysManage/sysInfo/onlyData.json" :  $.getWebRootPath("servConfig/findServConfigById"),
        //服务器类型下拉框
        "COLL_TYPE_LIST": APP_DEV_ENV ? "./jsons/sysManage/sysInfo/typeList.json" : $.getWebRootPath("servConfig/findServConfigType"),


        //磁盘清理
        //空间占用情况
        "EQ_DISK_GB": APP_DEV_ENV ? "./jsons/sysManage/sysDisk/diskCd.json" : $.getWebRootPath("sysManager/getLocalSpaceAccounted"),
        //清理记录list
        "EQ_DISK_RECORD": APP_DEV_ENV ? "./jsons/sysManage/sysDisk/diskList.json" : $.getWebRootPath("sysManager/getCleanRecordsByPage"),
        //清理记录val
        "EQ_DISK_CLEAR": APP_DEV_ENV ? "./jsons/sysManage/sysDisk/diskList.json" : $.getWebRootPath("sysManager/addCleanRecords"),
        //清理磁盘空间弹框
        "EQ_DISK_ALERT1": APP_DEV_ENV ? "./jsons/sysManage/sysDisk/alertList.json" : $.getWebRootPath("featureCode/findFeatureCodesByTypeId/28"),
        //清理磁盘空间弹框
        "EQ_DISK_ALERT2": APP_DEV_ENV ? "./jsons/sysManage/sysDisk/alertList.json" : $.getWebRootPath("featureCode/findFeatureCodesByTypeId/29"),
        //清理磁盘空间弹框
        "EQ_DISK_ALERT3": APP_DEV_ENV ? "./jsons/sysManage/sysDisk/alertList.json" : $.getWebRootPath("featureCode/findFeatureCodesByTypeId/30"),
        //清理磁盘空间弹框
        "EQ_DISK_ALERT4": APP_DEV_ENV ? "./jsons/sysManage/sysDisk/alertList.json" : $.getWebRootPath("featureCode/findFeatureCodesByTypeId/31"),
        //清理磁盘空间弹框
        "EQ_DISK_ALERT5": APP_DEV_ENV ? "./jsons/sysManage/sysDisk/alertList.json" : $.getWebRootPath("featureCode/findFeatureCodesByTypeId/33"),

			//码表管理
		//码表父级list
        "CODE_LIST_PARENT": APP_DEV_ENV ? "./jsons/sysManage/codeManage/listParent.json" : $.getWebRootPath("sysCode/getSysCodeTypeList"),
		//码表子级list
        "CODE_LIST_CHILD": APP_DEV_ENV ? "./jsons/sysManage/codeManage/listChild.json" : $.getWebRootPath("sysCode/getSysCodeInfoList"),
		//父级单独新增码表类型
        "CODE_ADD_TYPE_P": APP_DEV_ENV ? "./jsons/sysManage/codeManage/listChild.json" : $.getWebRootPath("sysCode/addSysCodeType"),
		//子级单独新增码表类型
        "CODE_ADD_TYPE_C": APP_DEV_ENV ? "./jsons/sysManage/codeManage/listChild.json" : $.getWebRootPath("sysCode/addSysCodeInfo"),
        //父级单独修改名称
        "CODE_EIDT_TYPE_P": APP_DEV_ENV ? "./jsons/sysManage/codeManage/listChild.json" : $.getWebRootPath("sysCode/updateSysCodeType"),
        //父级单独删除
        "CODE_DEL_TYPE_P": APP_DEV_ENV ? "./jsons/sysManage/codeManage/listChild.json" : $.getWebRootPath("sysCode/delSysCodeType"),
        //子级单独删除
        "CODE_DEL_TYPE_C": APP_DEV_ENV ? "./jsons/sysManage/codeManage/listChild.json" : $.getWebRootPath("sysCode/delSysCodeInfo"),
		
		
		
        /*
         用户管理角色
         * */
        //···用户管理
        //角色下拉单
        "USER_MAN_ROLE": APP_DEV_ENV ? "./jsons/sysManage/userManage/sysManage.json" : "./jsons/sysManage/sysMan/sysManage.json",
        //用户列表list
        "USER_MAN_LIST": APP_DEV_ENV ? "./jsons/sysManage/userManage/userList.json" : "./jsons/sysManage/sysMan/userList.json",
        //用户删除列表
        "USER_DEL_LIST": APP_DEV_ENV ? "./jsons/sysManage/userManage/del.json" : "./jsons/sysManage/sysMan/del.json",
        //用户角色管理
        "ROLE_MAN_LIST": APP_DEV_ENV ? "./jsons/sysManage/userManage/roleSys.json" : "./jsons/sysManage/sysMan/roleSys.json",
        //弹框_所在单位
        "LOCAL_MAN_NAME": APP_DEV_ENV ? "./jsons/userManage/roleOptions.json" : "./jsons/userManage/roleOptions.json",
        //弹框_ztreeRole
        "USER_ZTREE_NAME": APP_DEV_ENV ? "./jsons/userManage/roleZtree.json" : "./jsons/userManage/roleZtree.json",
        //添加角色ztree
        "ROLE_ZTREE_NAME": APP_DEV_ENV ? "./jsons/userManage/roleZtree2.json" : "./jsons/userManage/roleZtree2.json",
        //添加角色
        "ROLE_NAME_SEND": APP_DEV_ENV ? "./jsons/userManage/roleZVal.json" : "./jsons/userManage/roleZVal.json",
        //职务下拉单
        "ROLE_RANK_MAN": APP_DEV_ENV ? "./jsons/userManage/roleRank.json" : "./jsons/userManage/roleRank.json",
        //添加用户
        "ADD_ROLE_SEND": APP_DEV_ENV ? "./jsons/userManage/addUser.json" : "./jsons/userManage/addUser.json",


        /*
         --单独新增by ssw
         * */
        //资源使用规律option
        "SOURCE_LAW_TYPE": APP_DEV_ENV ? "./jsons/dataRegulation/dSourceLaw/sourceLaw.json" : $.getWebRootPath("usePatternAnalysis/listResources"),
        //资源概况
        "SOURCE_DATA_T": APP_DEV_ENV ? "./jsons/dataRegulation/dSourceLaw/sourceData.json" : $.getWebRootPath("usePatternAnalysis/getResourceById"),
        //库表访问排名
        "SOURCE_DATA_B": APP_DEV_ENV ? "./jsons/dataRegulation/dSourceLaw/bodyB.json" : $.getWebRootPath("usePatternAnalysis/getTableTraffic"),
        //4个charts图
        "SOURCE_DATA_C": APP_DEV_ENV ? "./jsons/dataRegulation/dSourceLaw/loadC.json" : $.getWebRootPath("usePatternAnalysis/findIpAccessStatistic"),
        //1个charts图
        "SOURCE_DATA_D": APP_DEV_ENV ? "./jsons/dataRegulation/dSourceLaw/loadD.json" : $.getWebRootPath("usePatternAnalysis/findTrafficStatisticOfDay"),

        //用户行为规律option
        "USER_LAW_TYPE": APP_DEV_ENV ? "./jsons/dataRegulation/dSourceLaw/UserLaw.json" :$.getWebRootPath("usePatternAnalysis/getAnalysisObjectLists"),
        //访问量数据
        "USER_DATA_T": APP_DEV_ENV ? "./jsons/dataRegulation/dSourceLaw/UserNum.json" : $.getWebRootPath("usePatternAnalysis/getAccessTrafficAndVisits"),
        //4个charts图
        "USER_DATA_C": APP_DEV_ENV ? "./jsons/dataRegulation/dSourceLaw/UserloadC.json" : $.getWebRootPath("usePatternAnalysis/getAccessResourceAnalysisForChar"),
        //1个charts图
        "USER_DATA_D": APP_DEV_ENV ? "./jsons/dataRegulation/dSourceLaw/UserloadD.json" : $.getWebRootPath("usePatternAnalysis/getActiveAnalysisForDailyTrafficRules"),

        //4个charts图
        "USER_DATA_C2": APP_DEV_ENV ? "./jsons/dataRegulation/dSourceLaw/UserloadC.json" :$.getWebRootPath("usePatternAnalysis/getActiveAnalysisForChar"),
        //1个charts图
        "USER_DATA_D2": APP_DEV_ENV ? "./jsons/dataRegulation/dSourceLaw/UserloadD.json" :$.getWebRootPath("usePatternAnalysis/getActiveAnalysisForDailyTrafficRules"),

        //日志管理新增弹框数据
        "LOG_DATA_PROP1": APP_DEV_ENV ? "./jsons/logManage/probe/alert.json" :$.getWebRootPath("logManager/findDeviceLogById"),// ,


        //资源概览数目条
        "SOURCE_DATA_NUM": APP_DEV_ENV ? "./jsons/dataRegulation/dSourceLaw/dataNum.json" : $.getWebRootPath("resourceStat/statResourceCurrentDayRunTimeTotal"),
        //资源概览库表数据流量情况
        "SOURCE_DATA_LIST": APP_DEV_ENV ? "./jsons/dataRegulation/dSourceLaw/listBu.json" : $.getWebRootPath("resourceStat/statResourceCurrentDayRunTimeDetail"),
        //资源概览库表数据流量情况
        "SOURCE_DATA_TAB": APP_DEV_ENV ? "./jsons/dataRegulation/dSourceLaw/rightTab.json" : $.getWebRootPath("resourceStat/findNewlyRiskEvent"),

        //概况
        //资源访问量排名
        "SOURCE_VISIT_RANK": APP_DEV_ENV ? "./jsons/dataRegulation/behavior/SvisitRank.json" : $.getWebRootPath("usePatternAnalysis/rankOfResourceAccess"),
        //活跃IP统计
        "ACTIVE_IP_STATISTICS": APP_DEV_ENV ? "./jsons/dataRegulation/behavior/SvisitRankIP.json" : $.getWebRootPath("usePatternAnalysis/activeIPStatistics"),
        //每日流量规律
        "DAY_FLOW_REGULARITY": APP_DEV_ENV ? "./jsons/dataRegulation/behavior/flowRegularity.json" :$.getWebRootPath("usePatternAnalysis/dailyTrafficPatterns"),
        //IP来源分布
        "IP_DATA_FROM": APP_DEV_ENV ? "./jsons/dataRegulation/behavior/pieIP.json" : $.getWebRootPath("usePatternAnalysis/distributionOfIPSource"),
        //操作类型分布
        "OPERATION_TYPE_FROM": APP_DEV_ENV ? "./jsons/dataRegulation/behavior/pieC.json" : $.getWebRootPath("usePatternAnalysis/distributionOfOptType"),


        /**
         *系统管理---客户端类型配置
         */
        //list管理列表
        "SYS_SERVER_LIST": APP_DEV_ENV ? "./jsons/sysManage/sysInfo/sysServerList.json" : $.getWebRootPath("sysManager/getClientNodeTree"),
        //集群内容添加
        "SYS_SERVER_ADD_LI": APP_DEV_ENV ? "./jsons/sysManage/sysInfo/sysServerList.json" : $.getWebRootPath("sysManager/saveOrUpdateClient"),
        //集群类型ftp
        "SYS_SERVER_FTP_TYPE": APP_DEV_ENV ? "./jsons/sysManage/sysInfo/ftpType.json" : $.getWebRootPath("sysManager/getResourceLists"),
        
		//修改集群_数据采集类型
        "SYS_SERVER_DATA_TYPE": APP_DEV_ENV ? "./jsons/sysManage/sysInfo/ftpType2.json" : $.getWebRootPath("sysManager/getClientClusterById"),


        //添加集群
        "SYS_SERVER_UP_TYPE": APP_DEV_ENV ? "./jsons/sysManage/sysInfo/ftpType.json" : $.getWebRootPath("sysManager/addClientCluster"),
        //修改集群
        "SYS_SERVER_RE_TYPE": APP_DEV_ENV ? "./jsons/sysManage/sysInfo/ftpType.json" : $.getWebRootPath("sysManager/updateClientCluster"),
        //删除集群
        "SYS_SERVER_DEL_TYPE": APP_DEV_ENV ? "./jsons/sysManage/sysInfo/ftpType.json" : $.getWebRootPath("sysManager/deleteClientCluster"),
        //删除单条
        "SYS_SERVER_DEL_ONE": APP_DEV_ENV ? "./jsons/sysManage/sysInfo/ftpType.json" : $.getWebRootPath("sysManager/deleteClient"),
        //导入列表
        "SYS_SERVER_LOAD_IN": APP_DEV_ENV ? "./jsons/sysManage/sysInfo/ftpType.json" : $.getWebRootPath("sysManager/importExcelForClientData"),
        //导出列表
        "SYS_SERVER_LOAD_OUT": APP_DEV_ENV ? "./jsons/sysManage/sysInfo/ftpType.json" : $.getWebRootPath("sysManager/exportExcelForClientData"),
        //数据库静态脱敏弹框内容
        "LOG_DATA_ALERT2":  APP_DEV_ENV ? "./jsons/logManage/probe/alert2.json" : $.getWebRootPath("logManager/findJTDataBaseLogById"),
        //数据库动态态脱敏弹框内容
        "LOG_DATA_ALERT3":  APP_DEV_ENV ? "./jsons/logManage/probe/alert3.json" : $.getWebRootPath("logManager/findDTDataBaseDeseLogById"),
        //文件脱敏弹框内容
        "LOG_DATA_ALERT4":  APP_DEV_ENV ? "./jsons/logManage/probe/alert4.json" : $.getWebRootPath("logManager/findFileDeseLogById"),
        //Hbase日志list
        "HBASE_DATA_LIST2": APP_DEV_ENV ? "./jsons/logManage/probe/list2.json" : $.getWebRootPath("logManager/findDeviceLogByPage"),
    };

    return DEV_TEST ? appApi[code] : "analysis" + appApi[code];
}